<?php
namespace app\common\model;
class Reward extends Base{
    function user(){
        return $this->belongsTo('member','uid')->field('id,name')->bind(['user'=>'name']);
    }
    function from(){
        return $this->belongsTo('member','from_id')->field('id,name')->bind(['from'=>'name']);
    }
    function order(){
        return $this->belongsTo('order','order_id')->field('id,number')->bind(['order'=>'number']);
    }
}
